<%--
  Created by IntelliJ IDEA.
  User: n'n'n'n
  Date: 2022/5/11
  Time: 14:21
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
    <link href="/css/bootstrap.min.css" rel="stylesheet">
    <script src="/js/bootstrap.bundle.min.js"></script>
</head>
<style>
    #table{
        width: 70%;
        margin: 50px auto;
    }
</style>
<body>
<div class="container mt-3">
    <table class="table table-hover" id="table">
        <thead>
        <tr>
            <th>id</th>
            <th>昵称</th>
            <th>手机号</th>
            <th>名字</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <c:forEach items="${users}" var="user">
            <tr>
                <td>${user.id}</td>
                <td>${user.nickname}</td>
                <td>${user.phone}</td>
                <td>${user.username}</td>
                <td>
                    <a href="" class="btn btn-primary" onclick="doSubmit();" >修改</a>
                    <a href="" class="btn btn-primary" onclick="doSubmit();" >删除</a>
                </td>
            </tr>
        </c:forEach>
        </tbody>
    </table>
</div>

</body>
</html>
